use strict;
use warnings;

TEST('bswap rax', [0x48,0x0f,0xc8], 'MODE64');

TEST('lock xadd dword [ecx], eax', [0xf0,0x0f,0xc1,0x01], 'MODE32');
TEST('lock xadd dword [eax], ecx', [0xf0,0x0f,0xc1,0x08], 'MODE32');
TEST('lock xadd dword [edi], eax', [0xf0,0x0f,0xc1,0x07], 'MODE32');
TEST('lock xadd dword [ecx], esi', [0xf0,0x0f,0xc1,0x31], 'MODE32');
TEST('lock xadd dword [ecx], edx', [0xf0,0x0f,0xc1,0x11], 'MODE32');
TEST('lock xadd dword [rax], ecx', [0xf0,0x0f,0xc1,0x08], 'MODE64');

